package main

import (
	"fmt"
	"os"
	"path/filepath"
)

func main() {
	fmt.Println(os.Args[0]) // /mnt/hgfs/wwwroot/go-learn/go_learn/standard-lib/7-os

	dir := filepath.Dir(os.Args[0]) // /mnt/hgfs/wwwroot/go-learn/go_learn/standard-lib
	fmt.Println(dir)

	absdir,_ := filepath.Abs(dir)
	fmt.Println(absdir)
}
